\hypertarget{emulateur_p_r_o_c_s_i_8c}{\section{\-Référence du fichier /\-Users/antoinelavail/\-Documents/workspace/emulateur-\/procsi-\/c/src/emulateur\-P\-R\-O\-C\-S\-I.c}
\label{emulateur_p_r_o_c_s_i_8c}\index{/\-Users/antoinelavail/\-Documents/workspace/emulateur-\/procsi-\/c/src/emulateur\-P\-R\-O\-C\-S\-I.\-c@{/\-Users/antoinelavail/\-Documents/workspace/emulateur-\/procsi-\/c/src/emulateur\-P\-R\-O\-C\-S\-I.\-c}}
}
{\ttfamily \#include $<$stdio.\-h$>$}\*
{\ttfamily \#include $<$stdlib.\-h$>$}\*
{\ttfamily \#include \char`\"{}fonctions.\-h\char`\"{}}\*
\-Graphe des dépendances par inclusion de emulateur\-P\-R\-O\-C\-S\-I.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{emulateur_p_r_o_c_s_i_8c__incl}
\end{center}
\end{figure}
\subsection*{\-Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{emulateur_p_r_o_c_s_i_8c_a904b49ea420fca72d6d88de21fd148df}{\-T\-A\-I\-L\-L\-E\-\_\-\-M\-E\-M\-D}~500
\item 
\#define \hyperlink{emulateur_p_r_o_c_s_i_8c_adfca7aa3a62280395bf7fe6a06e5515f}{\-T\-A\-I\-L\-L\-E\-\_\-\-P\-I\-L\-E}~10
\item 
\#define \hyperlink{emulateur_p_r_o_c_s_i_8c_a32d8d01056e5bd266d6e8f89750c355a}{\-N\-B\-\_\-\-R\-E\-G}~8
\end{DoxyCompactItemize}
\subsection*{\-Fonctions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{emulateur_p_r_o_c_s_i_8c_a840291bc02cba5474a4cb46a9b9566fe}{main} (void)
\item 
void \hyperlink{emulateur_p_r_o_c_s_i_8c_ad83dec4c50fb74e4d425badafcd088a3}{etat\-Des\-Registres} (short $\ast$reg)
\item 
void \hyperlink{emulateur_p_r_o_c_s_i_8c_aa992256b8414a097ca98a0463a16fb8a}{etat\-De\-La\-Pile} (short $\ast$pil\-E)
\item 
void \hyperlink{emulateur_p_r_o_c_s_i_8c_ab80f005039b55cdbdbea52bbbad3c622}{wait\-For\-Enter} ()
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
static short \hyperlink{emulateur_p_r_o_c_s_i_8c_ae0fe81a753b575de6aa60d6ee0ff872e}{\-P\-C} = 0
\item 
static short \hyperlink{emulateur_p_r_o_c_s_i_8c_a3ee7622d5fd5bd07e98fa09d595db886}{\-S\-P} = \hyperlink{emulateur_p_r_o_c_s_i_8c_adfca7aa3a62280395bf7fe6a06e5515f}{\-T\-A\-I\-L\-L\-E\-\_\-\-P\-I\-L\-E} -\/ 1
\item 
static short \hyperlink{emulateur_p_r_o_c_s_i_8c_a58fa6b74b97de234c6883dadf28b3de0}{\-S\-R} = 0
\end{DoxyCompactItemize}


\subsection{\-Documentation des macros}
\hypertarget{emulateur_p_r_o_c_s_i_8c_a32d8d01056e5bd266d6e8f89750c355a}{\index{emulateur\-P\-R\-O\-C\-S\-I.\-c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}!\-N\-B\-\_\-\-R\-E\-G@{\-N\-B\-\_\-\-R\-E\-G}}
\index{\-N\-B\-\_\-\-R\-E\-G@{\-N\-B\-\_\-\-R\-E\-G}!emulateurPROCSI.c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}}
\subsubsection[{\-N\-B\-\_\-\-R\-E\-G}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-N\-B\-\_\-\-R\-E\-G}~8}}\label{emulateur_p_r_o_c_s_i_8c_a32d8d01056e5bd266d6e8f89750c355a}
\hypertarget{emulateur_p_r_o_c_s_i_8c_a904b49ea420fca72d6d88de21fd148df}{\index{emulateur\-P\-R\-O\-C\-S\-I.\-c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}!\-T\-A\-I\-L\-L\-E\-\_\-\-M\-E\-M\-D@{\-T\-A\-I\-L\-L\-E\-\_\-\-M\-E\-M\-D}}
\index{\-T\-A\-I\-L\-L\-E\-\_\-\-M\-E\-M\-D@{\-T\-A\-I\-L\-L\-E\-\_\-\-M\-E\-M\-D}!emulateurPROCSI.c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}}
\subsubsection[{\-T\-A\-I\-L\-L\-E\-\_\-\-M\-E\-M\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-T\-A\-I\-L\-L\-E\-\_\-\-M\-E\-M\-D}~500}}\label{emulateur_p_r_o_c_s_i_8c_a904b49ea420fca72d6d88de21fd148df}
\hypertarget{emulateur_p_r_o_c_s_i_8c_adfca7aa3a62280395bf7fe6a06e5515f}{\index{emulateur\-P\-R\-O\-C\-S\-I.\-c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}!\-T\-A\-I\-L\-L\-E\-\_\-\-P\-I\-L\-E@{\-T\-A\-I\-L\-L\-E\-\_\-\-P\-I\-L\-E}}
\index{\-T\-A\-I\-L\-L\-E\-\_\-\-P\-I\-L\-E@{\-T\-A\-I\-L\-L\-E\-\_\-\-P\-I\-L\-E}!emulateurPROCSI.c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}}
\subsubsection[{\-T\-A\-I\-L\-L\-E\-\_\-\-P\-I\-L\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-T\-A\-I\-L\-L\-E\-\_\-\-P\-I\-L\-E}~10}}\label{emulateur_p_r_o_c_s_i_8c_adfca7aa3a62280395bf7fe6a06e5515f}


\subsection{\-Documentation des fonctions}
\hypertarget{emulateur_p_r_o_c_s_i_8c_aa992256b8414a097ca98a0463a16fb8a}{\index{emulateur\-P\-R\-O\-C\-S\-I.\-c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}!etat\-De\-La\-Pile@{etat\-De\-La\-Pile}}
\index{etat\-De\-La\-Pile@{etat\-De\-La\-Pile}!emulateurPROCSI.c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}}
\subsubsection[{etat\-De\-La\-Pile}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf etat\-De\-La\-Pile} (
\begin{DoxyParamCaption}
\item[{short $\ast$}]{pil\-E}
\end{DoxyParamCaption}
)}}\label{emulateur_p_r_o_c_s_i_8c_aa992256b8414a097ca98a0463a16fb8a}
\hypertarget{emulateur_p_r_o_c_s_i_8c_ad83dec4c50fb74e4d425badafcd088a3}{\index{emulateur\-P\-R\-O\-C\-S\-I.\-c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}!etat\-Des\-Registres@{etat\-Des\-Registres}}
\index{etat\-Des\-Registres@{etat\-Des\-Registres}!emulateurPROCSI.c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}}
\subsubsection[{etat\-Des\-Registres}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf etat\-Des\-Registres} (
\begin{DoxyParamCaption}
\item[{short $\ast$}]{reg}
\end{DoxyParamCaption}
)}}\label{emulateur_p_r_o_c_s_i_8c_ad83dec4c50fb74e4d425badafcd088a3}
\-Affiche l'�tat des registres avant l'ex�cution de l'instruction. \hypertarget{emulateur_p_r_o_c_s_i_8c_a840291bc02cba5474a4cb46a9b9566fe}{\index{emulateur\-P\-R\-O\-C\-S\-I.\-c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}!main@{main}}
\index{main@{main}!emulateurPROCSI.c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf main} (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{emulateur_p_r_o_c_s_i_8c_a840291bc02cba5474a4cb46a9b9566fe}
\hypertarget{emulateur_p_r_o_c_s_i_8c_ab80f005039b55cdbdbea52bbbad3c622}{\index{emulateur\-P\-R\-O\-C\-S\-I.\-c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}!wait\-For\-Enter@{wait\-For\-Enter}}
\index{wait\-For\-Enter@{wait\-For\-Enter}!emulateurPROCSI.c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}}
\subsubsection[{wait\-For\-Enter}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf wait\-For\-Enter} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{emulateur_p_r_o_c_s_i_8c_ab80f005039b55cdbdbea52bbbad3c622}


\subsection{\-Documentation des variables}
\hypertarget{emulateur_p_r_o_c_s_i_8c_ae0fe81a753b575de6aa60d6ee0ff872e}{\index{emulateur\-P\-R\-O\-C\-S\-I.\-c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}!\-P\-C@{\-P\-C}}
\index{\-P\-C@{\-P\-C}!emulateurPROCSI.c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}}
\subsubsection[{\-P\-C}]{\setlength{\rightskip}{0pt plus 5cm}short {\bf \-P\-C} = 0\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}\label{emulateur_p_r_o_c_s_i_8c_ae0fe81a753b575de6aa60d6ee0ff872e}
\hypertarget{emulateur_p_r_o_c_s_i_8c_a3ee7622d5fd5bd07e98fa09d595db886}{\index{emulateur\-P\-R\-O\-C\-S\-I.\-c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}!\-S\-P@{\-S\-P}}
\index{\-S\-P@{\-S\-P}!emulateurPROCSI.c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}}
\subsubsection[{\-S\-P}]{\setlength{\rightskip}{0pt plus 5cm}short {\bf \-S\-P} = {\bf \-T\-A\-I\-L\-L\-E\-\_\-\-P\-I\-L\-E} -\/ 1\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}\label{emulateur_p_r_o_c_s_i_8c_a3ee7622d5fd5bd07e98fa09d595db886}
\hypertarget{emulateur_p_r_o_c_s_i_8c_a58fa6b74b97de234c6883dadf28b3de0}{\index{emulateur\-P\-R\-O\-C\-S\-I.\-c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}!\-S\-R@{\-S\-R}}
\index{\-S\-R@{\-S\-R}!emulateurPROCSI.c@{emulateur\-P\-R\-O\-C\-S\-I.\-c}}
\subsubsection[{\-S\-R}]{\setlength{\rightskip}{0pt plus 5cm}short {\bf \-S\-R} = 0\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}\label{emulateur_p_r_o_c_s_i_8c_a58fa6b74b97de234c6883dadf28b3de0}
